export default {
	shortcuts: [{
			text: '今天',
			onClick(picker) {
				const start = new Date()
				const end = new Date()
				start.setHours(0)
				start.setMinutes(0)
				start.setSeconds(0)
				end.setHours(23)
				end.setMinutes(59)
				end.setSeconds(59)
				picker.$emit('pick', [start, end])
			}
		}, {
			text: '昨天',
			onClick(picker) {
				const date = new Date()
				const start = new Date()
				const end = new Date()
				start.setTime(date.getTime() - 3600 * 1000 * 24)
				end.setTime(date.getTime() - 3600 * 1000 * 24)
				start.setHours(0)
				start.setMinutes(0)
				start.setSeconds(0)
				end.setHours(23)
				end.setMinutes(59)
				end.setSeconds(59)
				picker.$emit('pick', [start, end])
			}
		},
		{
			text: '最近三天',
			onClick(picker) {
				const end = new Date()
				const start = new Date()
				start.setTime(start.getTime() - 3600 * 1000 * 24 * 3)
				picker.$emit('pick', [start, end])
			}
		},
		{
			text: '最近一周',
			onClick(picker) {
				const end = new Date();
				const start = new Date();
				start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
				picker.$emit('pick', [start, end]);
			}
		}, {
			text: '最近一个月',
			onClick(picker) {
				const end = new Date();
				const start = new Date();
				start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
				picker.$emit('pick', [start, end]);
			}
		}, {
			text: '最近三个月',
			onClick(picker) {
				const end = new Date();
				const start = new Date();
				start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
				picker.$emit('pick', [start, end]);
			}
		}
	]
}
